import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    storeThereNavList:[

    ],
    configInfo:{},
    token:"",
    userInfo:{},
    language:"zh"
  },
  getters: {
  },
  mutations: {
    setStoreThereNavList(state,data) {
      state.storeThereNavList = state.storeThereNavList.concat(data)
    },
    setConfigInfo(state,data) {
      state.configInfo = data
    },
    setToken(state,data){
      state.token = data
    },
    setUserInfo(state,data){
      state.userInfo = data
    },
    setLanguage(state,data) {
      state.language = data
    }
  },
  actions: {
  },
  modules: {
  }
})
